package com.bjut.vendormgrsys.web.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.Valid;
import java.util.List;

@Data
public class ResultListData {
    @JsonProperty("totalCount")
    private Long totalCount = null;

    @JsonProperty("items")
    @Valid
    private List<?> items = null;

    public ResultListData totalCount(Long totalCount) {
        this.totalCount = totalCount;
        return this;
    }

    public ResultListData items(List<?> items) {
        this.items = items;
        return this;
    }
}
